<?php
/* 
-------------------------------
ERP Elyazalée 
Développé par Loïc PIQUARD
SARL Elyazalée - 2009
www.elyazalee.com
-------------------------------
*/
include ("../../includes/kernel.php");
verif_session(1);
$requete=requete("SELECT * FROM actualites WHERE actif=1 AND categorie='".mysql_real_escape_string($_GET['cat'])."' AND date_diffusion<NOW() AND date_findiffusion>NOW() AND id='".mysql_real_escape_string($_REQUEST['id'])."' ORDER BY id DESC");



while ($result=mysql_fetch_array($requete))
		{
		$titre=stripslashes($result['titre']);
		$contenu=str_replace(" />",">",stripslashes($result['contenu']));		
		$auteur=stripslashes($result['auteur']);
		$pdf=$result['pdf']; 
		$imprimer=$result['imprimer'];
		$vignette=$result['vignette_mini'];
		$date_diffusion=$result['date_diffusion'];
		?>
       
        
        <?php
		}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $titre; ?></title>
<link href="../../style.css" rel="stylesheet" type="text/css" />
<style>

body {
	background-image: none;
	background-color:#FFF;
	background-repeat: repeat-x;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
</head>

<body >
<fieldset>
         <legend><?php echo $titre; ?></legend>
         <table width="100%" border="0" cellspacing="0" cellpadding="3">
           <tr>
             <td class="fond1"><i>Publi&eacute; le <?php echo trans_date($date_diffusion,3,"-"); ?></i></td>
           </tr>
           <tr>
             <td class="fond2"><?php if ($vignette<>"") { ?><img src="upload_galeries/<?php echo $vignette; ?>" align="left" vspace="5" hspace="5"><?php } ?><?php echo $contenu; ?></td>
           </tr>
         </table>
       </fieldset>

</body>
</html>
